<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    
    
    <!-- <script src="d3.min.js"></script> -->
    <script src="https://d3js.org/d3.v7.min.js"></script>
    <script>
        const x = d3.scaleOrdinal(['张三','李四','王五'],['研发部','财务部','销售部']);
        x.unknown('其他部门');
    </script>
</body>
</html>